import fetch from "./../fetch.js";
// 用户登录
const userLogin = (params) => {
  return fetch({
    url: "/system/authentication/login",
    method: "post",
    data: JSON.stringify(params),
  });
};

// 登出账号
const loginOut = (params) => {
  return fetch({
    url: "/system/authentication/signOut",
    method: "post"
  });
};

// 忘记密码
const forgotPassword = (params) => {
  return fetch({
    url: "/system/authentication/forgotPassword",
    method: "post",
    data: JSON.stringify(params),
  });
};



export default {
  userLogin,
  loginOut,
  forgotPassword
};
